package top.happylaishop.shop.service;

import top.happylaishop.shop.dto.OrderDto;
import top.happylaishop.shop.dto.UserDto;
import top.happylaishop.shop.pojo.Order;
import top.happylaishop.shop.utils.PageDto;
import top.happylaishop.shop.utils.resp.BaseResponse;
import top.happylaishop.shop.utils.resp.RestResponse;
import top.happylaishop.shop.vo.CreateOrderVo;

import java.util.List;

public interface OrderService {

    RestResponse<OrderDto> create(UserDto currentUserInfo, CreateOrderVo createOrderVo);

    BaseResponse cancel(UserDto currentUserInfo, String orderNo);

    RestResponse<OrderDto> getDetailByOrderNo(UserDto currentUserInfo, String orderNo);

    void list(UserDto currentUserInfo, PageDto<OrderDto> orderPageDto);

    RestResponse<OrderDto> getCurrentOrder(UserDto currentUserInfo);
}
